home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / imprvbt2.zip / FORMAT.BAT < prev    next >
DOS Batch File  |  1992-09-02  |  2KB  |  58 lines

  1. @ECHO OFF
  2. REM     This batch file is to demonstrate the usefulness of the enclosed batch
  3. REM     enhancement programs.  It assumes that the user has a 1.2M floppy 
  4. REM     drive for A: and a 1.44M floppy drive for drive B:  This batch file 
  5. REM     will greaty simplify the task of formatting floppies for the novice
  6. REM     computer user.  If you find this program or the associated COM files 
  7. REM     to be of use, please register this shareware by sending $5.00 to the 
  8. REM     author, John Miktuk, 5625 Niobe Road, Panama, NY 14767.
  9. REM     This batch file and the other files included with it are shareware and
  10. REM     The author reserves ALL rights to their use.  The author assumes no
  11. REM     responsibility for their use, either private or public, but welcomes
  12. REM     feedback from the users.
  13. :START
  14. CLS
  15. BLANK 4
  16. ECHO What do you wish to format?
  17. BLANK
  18. ECHO 1)   A:  360  K
  19. ECHO 2)   A:  1.2  M
  20. ECHO 3)   B:  720  K
  21. ECHO 4)   B:  1.44 M
  22. ECHO 0)   OOPS, don't want to format!
  23. BLANK
  24. ECHO Please pick the drive and media you wish to format:
  25. BLANK 3
  26. BATKEY 4
  27. IF ERRORLEVEL 5 GOTO EXIT
  28. IF ERRORLEVEL 4 GOTO F14
  29. IF ERRORLEVEL 3 GOTO F72
  30. IF ERRORLEVEL 2 GOTO F12
  31. IF ERRORLEVEL 1 GOTO F36
  32. GOTO EXIT
  33. :F14
  34. ECHO Format B:  3 1/2" High-Density (1.44M), Correct? (Y/N)
  35. GETYN
  36. IF ERRORLEVEL 1 GOTO START
  37. C:\DOS\FORMAT B: /U
  38. GOTO EXIT
  39. :F72
  40. ECHO Format B:  3 1/2" Double-Density (720K), Correct? (Y/N)
  41. GETYN
  42. IF ERRORLEVEL 1 GOTO START
  43. C:\DOS\FORMAT B: /U /F:720
  44. GOTO EXIT
  45. :F12
  46. ECHO Format A:  5 1/4" High-Density (1.2M), Correct? (Y/N)
  47. GETYN
  48. IF ERRORLEVEL 1 GOTO START
  49. C:\DOS\FORMAT A: /U
  50. GOTO EXIT
  51. :F36
  52. ECHO Format A:  5 1/4" Double-Density (360K), Correct? (Y/N)
  53. GETYN
  54. IF ERRORLEVEL 1 GOTO START
  55. C:\DOS\FORMAT A: /U /F:360
  56. :EXIT
  57. CLS
  58.